package org.my;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.starter.EasyTransactionAutoConfiguration;

@SpringBootApplication
// (exclude = EasyTransactionAutoConfiguration.class)
public class MyApplication {

    public static void main(String[] args) throws Throwable {
        ConfigurableApplicationContext spring = SpringApplication.run(MyApplication.class, args);

        MyService bean2 = spring.getBean(MyService.class);
        System.out.println(bean2.getClass());
        try {

            bean2.test_final( bean2);
            bean2.test_this_private(null);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.exit(0);
    }
}
